package com.ycxy.sh.transaction.exception;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Author: hlt
 * @Description: 统一异常处理类
 * @Date: 2019/12/27 16:09
 */

@Slf4j
@RestControllerAdvice
public class BaseExceptionHandler {

    @ExceptionHandler(value = Exception.class)
    public String error(Exception e){
        e.printStackTrace();
        return "/error/500";
    }
}
